GtkSpinButton: Set orientable style classes initially
authorMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 23:39:56 +0000 (19:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 23:39:56 +0000 (19:39 -0400)
This was an omission, horizontal/vertical would only be set
when the orientation is changed.

gtk/gtkspinbutton.c

index 38dd76b0db9343587c1227d0692c7248af9c736c..70119b57b0916c3f0769baddccd5030ff179a76f 100644 (file)
@@ -700,6 +700,7 @@ gtk_spin_button_init (GtkSpinButton *spin_button)
 
   context = gtk_widget_get_style_context (GTK_WIDGET (spin_button));
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_SPINBUTTON);
+  _gtk_orientable_set_style_classes (GTK_ORIENTABLE (spin_button));
 
   gtk_widget_add_events (GTK_WIDGET (spin_button), GDK_SCROLL_MASK);